package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 会议签到表
 * tz_meeting_sign
 */
@TableName("tz_meeting_sign")
@Data
public class MeetingSign {
    /**
     * 会议签到主键Id
     */
    @TableId(type = IdType.AUTO)
    private Long meetingSignId;

    /**
     * 店铺Id
     */
    @NotNull
    @Schema(description = "店铺Id")
    private Long shopId;

    /**
     * 会议主键Id
     */
    @NotNull
    @Schema(description = "会议主键Id")
    private Long meetingId;

    /**
     * 参会单位名称
     */
    @Schema(description = "参会单位名称")
    private String participantUnitsName;

    /**
     * 参会人员姓名
     */
    @NotNull
    @Schema(description = "参会人员姓名")
    private String participants;

    /**
     * 职务
     */
    @Schema(description = "职务")
    private String duties;

    /**
     * 性别
     */
    @Schema(description = "性别")
    private String gender;

    /**
     * 联系电话
     */
    @NotNull
    @Schema(description = "联系电话")
    private String telephone;

    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private String userId;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private Date updateTime;


    /**
     * 签到用户信息
     */
    @TableField(exist = false)
    @Schema(description = "签到用户信息")
    private User user;

    @TableField(exist = false)
    @Schema(description = "签到后是否领取")
    private Boolean receive;
}